package com.xxx.springboot.service.impl;

import com.xxx.springboot.pojo.entity.ShiroUser;
import com.xxx.springboot.mapper.ShiroUserMapper;
import com.xxx.springboot.service.ShiroUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * shiro认证用户表 服务实现类
 * </p>
 */
@Service
public class ShiroUserServiceImpl extends ServiceImpl<ShiroUserMapper, ShiroUser>
        implements ShiroUserService {

    @Override
    public ShiroUser getUserByName(String name) {
        return this.lambdaQuery().eq(ShiroUser::getUsername, name).one();
    }
}
